<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::BlockMatrix2x2&lt; Matrix &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_block_matrix2x2.html">BlockMatrix2x2</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_block_matrix2x2-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::BlockMatrix2x2&lt; Matrix &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>SVM regression matrix.  
 <a href="classshark_1_1_block_matrix2x2.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_block_matrix2x2_8h_source.html">shark/LinAlg/BlockMatrix2x2.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad983114753600fdbf90c81ba5bcf3839" id="r_ad983114753600fdbf90c81ba5bcf3839"><td class="memItemLeft" align="right" valign="top">typedef Matrix::QpFloatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a></td></tr>
<tr class="separator:ad983114753600fdbf90c81ba5bcf3839"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4503961134dc4428dd9675c5c8289797" id="r_a4503961134dc4428dd9675c5c8289797"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a4503961134dc4428dd9675c5c8289797">BlockMatrix2x2</a> (Matrix *base)</td></tr>
<tr class="separator:a4503961134dc4428dd9675c5c8289797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7051ce16842666316e1567d868378c3e" id="r_a7051ce16842666316e1567d868378c3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a7051ce16842666316e1567d868378c3e">operator()</a> (std::size_t i, std::size_t j) const</td></tr>
<tr class="memdesc:a7051ce16842666316e1567d868378c3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a single matrix entry  <br /></td></tr>
<tr class="separator:a7051ce16842666316e1567d868378c3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a446a4eedb1e3fc6f0d72aa921da39e9a" id="r_a446a4eedb1e3fc6f0d72aa921da39e9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a446a4eedb1e3fc6f0d72aa921da39e9a">entry</a> (std::size_t i, std::size_t j) const</td></tr>
<tr class="memdesc:a446a4eedb1e3fc6f0d72aa921da39e9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a single matrix entry  <br /></td></tr>
<tr class="separator:a446a4eedb1e3fc6f0d72aa921da39e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1651f0def46f95b6d1d502c409b2b187" id="r_a1651f0def46f95b6d1d502c409b2b187"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a1651f0def46f95b6d1d502c409b2b187">row</a> (std::size_t i, std::size_t start, std::size_t end, <a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a> *storage) const</td></tr>
<tr class="memdesc:a1651f0def46f95b6d1d502c409b2b187"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the i-th row of the kernel matrix.  <br /></td></tr>
<tr class="separator:a1651f0def46f95b6d1d502c409b2b187"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f56cb780421cdde2a0168d65f6c88d9" id="r_a7f56cb780421cdde2a0168d65f6c88d9"><td class="memTemplParams" colspan="2">template&lt;class M &gt; </td></tr>
<tr class="memitem:a7f56cb780421cdde2a0168d65f6c88d9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a7f56cb780421cdde2a0168d65f6c88d9">matrix</a> (blas::matrix_expression&lt; M, blas::cpu_tag &gt; &amp;storage) const</td></tr>
<tr class="memdesc:a7f56cb780421cdde2a0168d65f6c88d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the kernel-matrix.  <br /></td></tr>
<tr class="separator:a7f56cb780421cdde2a0168d65f6c88d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41f606e589ae9a8b4f98d7679b4074b3" id="r_a41f606e589ae9a8b4f98d7679b4074b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a41f606e589ae9a8b4f98d7679b4074b3">flipColumnsAndRows</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:a41f606e589ae9a8b4f98d7679b4074b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">swap two variables  <br /></td></tr>
<tr class="separator:a41f606e589ae9a8b4f98d7679b4074b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4be517263cfd424033f5c999ec2c4a7" id="r_ab4be517263cfd424033f5c999ec2c4a7"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#ab4be517263cfd424033f5c999ec2c4a7">size</a> () const</td></tr>
<tr class="memdesc:ab4be517263cfd424033f5c999ec2c4a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the size of the quadratic matrix  <br /></td></tr>
<tr class="separator:ab4be517263cfd424033f5c999ec2c4a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ab7a2a52cee90714069a86f5bd8fb0bb2" id="r_ab7a2a52cee90714069a86f5bd8fb0bb2"><td class="memItemLeft" align="right" valign="top">Matrix *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#ab7a2a52cee90714069a86f5bd8fb0bb2">m_base</a></td></tr>
<tr class="memdesc:ab7a2a52cee90714069a86f5bd8fb0bb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">underlying <a class="el" href="classshark_1_1_kernel_matrix.html" title="Kernel Gram matrix.">KernelMatrix</a> object  <br /></td></tr>
<tr class="separator:ab7a2a52cee90714069a86f5bd8fb0bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2986a8a50723e023a3a82dafb97170eb" id="r_a2986a8a50723e023a3a82dafb97170eb"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_block_matrix2x2.html#a2986a8a50723e023a3a82dafb97170eb">m_mapping</a></td></tr>
<tr class="memdesc:a2986a8a50723e023a3a82dafb97170eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">coordinate permutation  <br /></td></tr>
<tr class="separator:a2986a8a50723e023a3a82dafb97170eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class Matrix&gt;<br />
class shark::BlockMatrix2x2&lt; Matrix &gt;</div><p>SVM regression matrix. </p>
<dl class="section user"><dt></dt><dd>The <a class="el" href="classshark_1_1_block_matrix2x2.html" title="SVM regression matrix.">BlockMatrix2x2</a> class is a \( 2n \times 2n \) block matrix of the form<br  />
 &#160;&#160;&#160; \( \left( \begin{array}{lr} M &amp; M \\ M &amp; M \end{array} \right) \) <br  />
 where M is an \( n \times n \) matrix. This matrix form is needed in SVM regression problems. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00062">62</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ad983114753600fdbf90c81ba5bcf3839" name="ad983114753600fdbf90c81ba5bcf3839"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad983114753600fdbf90c81ba5bcf3839">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Matrix::QpFloatType <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00065">65</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a4503961134dc4428dd9675c5c8289797" name="a4503961134dc4428dd9675c5c8289797"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4503961134dc4428dd9675c5c8289797">&#9670;&#160;</a></span>BlockMatrix2x2()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::BlockMatrix2x2 </td>
          <td>(</td>
          <td class="paramtype">Matrix *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>underlying matrix M, see class description of <a class="el" href="classshark_1_1_block_matrix2x2.html" title="SVM regression matrix.">BlockMatrix2x2</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00069">69</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#ab7a2a52cee90714069a86f5bd8fb0bb2">shark::BlockMatrix2x2&lt; Matrix &gt;::m_base</a>, <a class="el" href="classshark_1_1_block_matrix2x2.html#a2986a8a50723e023a3a82dafb97170eb">shark::BlockMatrix2x2&lt; Matrix &gt;::m_mapping</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#ab4be517263cfd424033f5c999ec2c4a7">shark::BlockMatrix2x2&lt; Matrix &gt;::size()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a446a4eedb1e3fc6f0d72aa921da39e9a" name="a446a4eedb1e3fc6f0d72aa921da39e9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a446a4eedb1e3fc6f0d72aa921da39e9a">&#9670;&#160;</a></span>entry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a> <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::entry </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return a single matrix entry </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00089">89</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#ab7a2a52cee90714069a86f5bd8fb0bb2">shark::BlockMatrix2x2&lt; Matrix &gt;::m_base</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#a2986a8a50723e023a3a82dafb97170eb">shark::BlockMatrix2x2&lt; Matrix &gt;::m_mapping</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_block_matrix2x2.html#a7f56cb780421cdde2a0168d65f6c88d9">shark::BlockMatrix2x2&lt; Matrix &gt;::matrix()</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#a7051ce16842666316e1567d868378c3e">shark::BlockMatrix2x2&lt; Matrix &gt;::operator()()</a>.</p>

</div>
</div>
<a id="a41f606e589ae9a8b4f98d7679b4074b3" name="a41f606e589ae9a8b4f98d7679b4074b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41f606e589ae9a8b4f98d7679b4074b3">&#9670;&#160;</a></span>flipColumnsAndRows()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::flipColumnsAndRows </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>swap two variables </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00117">117</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#a2986a8a50723e023a3a82dafb97170eb">shark::BlockMatrix2x2&lt; Matrix &gt;::m_mapping</a>.</p>

</div>
</div>
<a id="a7f56cb780421cdde2a0168d65f6c88d9" name="a7f56cb780421cdde2a0168d65f6c88d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f56cb780421cdde2a0168d65f6c88d9">&#9670;&#160;</a></span>matrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<div class="memtemplate">
template&lt;class M &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::matrix </td>
          <td>(</td>
          <td class="paramtype">blas::matrix_expression&lt; M, blas::cpu_tag &gt; &amp;&#160;</td>
          <td class="paramname"><em>storage</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the kernel-matrix. </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00106">106</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#a446a4eedb1e3fc6f0d72aa921da39e9a">shark::BlockMatrix2x2&lt; Matrix &gt;::entry()</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#ab4be517263cfd424033f5c999ec2c4a7">shark::BlockMatrix2x2&lt; Matrix &gt;::size()</a>.</p>

</div>
</div>
<a id="a7051ce16842666316e1567d868378c3e" name="a7051ce16842666316e1567d868378c3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7051ce16842666316e1567d868378c3e">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a> <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return a single matrix entry </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00085">85</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#a446a4eedb1e3fc6f0d72aa921da39e9a">shark::BlockMatrix2x2&lt; Matrix &gt;::entry()</a>.</p>

</div>
</div>
<a id="a1651f0def46f95b6d1d502c409b2b187" name="a1651f0def46f95b6d1d502c409b2b187"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1651f0def46f95b6d1d502c409b2b187">&#9670;&#160;</a></span>row()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::row </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_block_matrix2x2.html#ad983114753600fdbf90c81ba5bcf3839">QpFloatType</a> *&#160;</td>
          <td class="paramname"><em>storage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the i-th row of the kernel matrix. </p>
<p>The entries start,...,end of the i-th row are computed and stored in storage. There must be enough room for this operation preallocated. </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00098">98</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#ab7a2a52cee90714069a86f5bd8fb0bb2">shark::BlockMatrix2x2&lt; Matrix &gt;::m_base</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#a2986a8a50723e023a3a82dafb97170eb">shark::BlockMatrix2x2&lt; Matrix &gt;::m_mapping</a>.</p>

</div>
</div>
<a id="ab4be517263cfd424033f5c999ec2c4a7" name="ab4be517263cfd424033f5c999ec2c4a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4be517263cfd424033f5c999ec2c4a7">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return the size of the quadratic matrix </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00123">123</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_block_matrix2x2.html#ab7a2a52cee90714069a86f5bd8fb0bb2">shark::BlockMatrix2x2&lt; Matrix &gt;::m_base</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_block_matrix2x2.html#a4503961134dc4428dd9675c5c8289797">shark::BlockMatrix2x2&lt; Matrix &gt;::BlockMatrix2x2()</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#a7f56cb780421cdde2a0168d65f6c88d9">shark::BlockMatrix2x2&lt; Matrix &gt;::matrix()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab7a2a52cee90714069a86f5bd8fb0bb2" name="ab7a2a52cee90714069a86f5bd8fb0bb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7a2a52cee90714069a86f5bd8fb0bb2">&#9670;&#160;</a></span>m_base</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Matrix* <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::m_base</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>underlying <a class="el" href="classshark_1_1_kernel_matrix.html" title="Kernel Gram matrix.">KernelMatrix</a> object </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00128">128</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_block_matrix2x2.html#a4503961134dc4428dd9675c5c8289797">shark::BlockMatrix2x2&lt; Matrix &gt;::BlockMatrix2x2()</a>, <a class="el" href="classshark_1_1_block_matrix2x2.html#a446a4eedb1e3fc6f0d72aa921da39e9a">shark::BlockMatrix2x2&lt; Matrix &gt;::entry()</a>, <a class="el" href="classshark_1_1_block_matrix2x2.html#a1651f0def46f95b6d1d502c409b2b187">shark::BlockMatrix2x2&lt; Matrix &gt;::row()</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#ab4be517263cfd424033f5c999ec2c4a7">shark::BlockMatrix2x2&lt; Matrix &gt;::size()</a>.</p>

</div>
</div>
<a id="a2986a8a50723e023a3a82dafb97170eb" name="a2986a8a50723e023a3a82dafb97170eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2986a8a50723e023a3a82dafb97170eb">&#9670;&#160;</a></span>m_mapping</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Matrix &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::size_t&gt; <a class="el" href="classshark_1_1_block_matrix2x2.html">shark::BlockMatrix2x2</a>&lt; Matrix &gt;::m_mapping</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>coordinate permutation </p>

<p class="definition">Definition at line <a class="el" href="_block_matrix2x2_8h_source.html#l00131">131</a> of file <a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_block_matrix2x2.html#a4503961134dc4428dd9675c5c8289797">shark::BlockMatrix2x2&lt; Matrix &gt;::BlockMatrix2x2()</a>, <a class="el" href="classshark_1_1_block_matrix2x2.html#a446a4eedb1e3fc6f0d72aa921da39e9a">shark::BlockMatrix2x2&lt; Matrix &gt;::entry()</a>, <a class="el" href="classshark_1_1_block_matrix2x2.html#a41f606e589ae9a8b4f98d7679b4074b3">shark::BlockMatrix2x2&lt; Matrix &gt;::flipColumnsAndRows()</a>, and <a class="el" href="classshark_1_1_block_matrix2x2.html#a1651f0def46f95b6d1d502c409b2b187">shark::BlockMatrix2x2&lt; Matrix &gt;::row()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/LinAlg/<a class="el" href="_block_matrix2x2_8h_source.html">BlockMatrix2x2.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
